<?php

namespace beObject\Tests\MVC;

use beObject\MVC\Model;
use beObject\MVC\iValidation;
use beObject\MVC\iSerializable;
use beObject\Primitive\Boolean;
use beObject\Primitive\String;

class myModel
    extends Model
    implements iValidation,
               iSerializable {

  protected $name = "myModel";
  protected $parsingKey = "beObject";

  public function setName($value) {
    $this->name = $value;
  }

  public function getName() {
    return $this->name;
  }

  public function getParsingKey() {
    return new String($this->parsingKey);
  }

  public function setParsingKey($parsingKey) {
    $this->parsingKey = $parsingKey;
  }

  public function validate() {
    return new Boolean(true);
  }

  public function __sleep() {
    return array("name");
  }

  public function __wakeup() {
    // Nothing
  }

}

?>
